package org.gwh.airagknowledge.repository;

import org.gwh.airagknowledge.entity.Document;
import org.gwh.airagknowledge.entity.DocumentChunk;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DocumentChunkRepository extends JpaRepository<DocumentChunk, Long> {
    
    List<DocumentChunk> findByDocument(Document document);
    
    List<DocumentChunk> findByDocumentId(Long documentId);
    
    void deleteByDocumentId(Long documentId);
} 